<template>
 <div>
<table border="0">
    <tr>
        <td v-for="(items) in tableData">
          {{items.name}}
        </td>
    </tr>
    <tr>
        <td v-for="items in a">
          <div class="btn-box" :class="{btn_active:items}"></div>
        </td>
    </tr>
    <tr>
        <td v-for="items in tableData1">
          {{items.name}}
        </td>
    </tr>
    <tr>
        <td v-for="items in aa">
          <div class="btn-box" :class="{btn_active:items}"></div>
        </td>
    </tr>
    <tr>
        <td v-for="items in tableData2">
          {{items.name}}
        </td>
    </tr>
    <tr>
        <td v-for="items in aaa">
          <div class="btn-box" :class="{btn_active:items}"></div>
        </td>
    </tr>
    <tr>
        <td v-for="items in tableData3">
          {{items.name}}
        </td>
    </tr>
    <tr>
        <td v-for="items in aaaa">
          <div class="btn-box" :class="{btn_active:items}"></div>
        </td>
    </tr>    
  </table>
 </div>
</template>
<script>
export default {
  props: [
  "a",
  "aa",
  "aaa",
  "aaaa"
  ],
  data () {
    return {
        tableData:[
          {
            name:"排气温度1",
            value:1
          },
          {
            name:"盘管冻结1",
            value:0
          },
          {
            name:"风机过载1 ",
            value:1
          },
          {
            name:"高温报警",
            value:0
          },
          {
            name:"低温报警",
            value:0
          },
          {
            name:"高湿报警",
            value:0
          },
          {
            name:"低湿报警",
            value:0
          }
        ],
        tableData1:[
          {
            name:"过滤网堵",
            value:1
          },
          {
            name:"远程关机",
            value:0
          },
          {
            name:"温湿度检测板故障",
            value:0
          },
          {
            name:"风机运行超时",
            value:1
          },
          {
            name:"压缩机1运行超时",
            value:0
          },
          {
            name:"加热器1运行超时",
            value:0
          },
          {
            name:"加湿器运行超时",
            value:0
          }
        ],
        tableData2:[
          {
            name:"电源丢失",
            value:0
          },
          {
            name:"电源过压",
            value:0
          },
          {
            name:"电源欠压",
            value:0
          },
          {
            name:"电源频偏",
            value:0
          },
          {
            name:"电源缺相",
            value:0
          },
          {
            name:"电源反相",
            value:0
          },
          {
            name:"地板溢水",
            value:0
          }
        ],
        tableData3:[
          {
            name:"排气1低温",
            value:0
          },
          {
            name:"送风高温",
            value:0
          },
          {
            name:"风压传感器故障",
            value:0
          },
          {
            name:"排气1低温锁定",
            value:0
          },
          {
            name:"低压传感器1失效",
            value:0
          },
          {
            name:"过滤网维护",
            value:0
          },
          {
            name:"电加热报警",
            value:0
          }
        ]
    }
  },
  computed: {
  },
  methods: {
    closeMyself () {
      this.$emit('on-close');
    }
  }
}
</script>
<style scoped>
table{
  width: 100%;
  border-collapse:collapse;
  border-top:1px solid #f2f2f2;
}
table td{
  max-width: 100px;
  height: 30px;
  text-align: center;
  border: 0px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  border-right:1px solid #f2f2f2;
}
table tr{
  height: 30px;
  overflow: hidden;
  border-bottom:1px solid #f2f2f2;
  border-left:1px solid #f2f2f2;
}
.btn-box{
  width:13px;
  height:13px;
  border-radius: 50%;
  background: #13ce66;
  box-shadow: 2px 2px 3px #bfbeb8;
  margin: auto;
}
.btn_active{
  background: #ff4949;
}
</style>
